﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace SharePointExplorer.UserControls
{
    /// <summary>
    /// Interaction logic for KinectButtonControl.xaml
    /// </summary>
    public partial class KinectButtonControl : UserControl
    {
        public delegate void CustomClickHandler(object sender, EventArgs e);
        public event CustomClickHandler CustomClick;

        public KinectButtonControl()
        {
            InitializeComponent();
        }
 
        public ImageSource ButtonImageSource
        {
            get
            {
                return  ButtonImage.Source;
            }
            set
            {
                ButtonImage.Source = value;
            }
        }


        public string ButtonContent
        {
            get
            {
                return ButtonText.Text;
            }
            set
            {
                ButtonText.Text = value;
            }
        }

        private void KinectPaintButton_Click(object sender, RoutedEventArgs e)
        {
            if (CustomClick != null)
                CustomClick(sender, e);
        }
    }
}
